#!/usr/bin/python

people = {
        'alice' :{
            'phone' : '2341',
            'addr' : 'shenzhen'
            },

        'beth' : {
            'phone' : '2341',
            'addr' : 'shenzhen'
            }
        #'cecil' : {
        #    'phone' : '2341',
        #    'addr' : 'shenzhen'
        #    }
        }
labels = {
        'phone' : 'phone number',
        'addr' : 'address'
        }
name = input('name: ')

if input() == 'p' : key = 'phone'
elif input() == 'a' : key = 'addr'

if name in people : print ("%s's %s is %s " %\
        (name, labels[key], people[name][key]))
